<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<s:if test="hasActionErrors()">
    <span class="error">
        <s:iterator value="actionErrors">
            <s:property/>
        </s:iterator>
    </span>
</s:if>

<s:if test="hasFieldErrors()">
    <span class="error">
        <s:iterator value="fieldErrors">
            <s:iterator value="value">
                <s:property/>
            </s:iterator>
        </s:iterator>
    </span>
</s:if>

<s:if test="hasActionMessages()">
    <span class="success">
        <s:iterator value="actionMessages">
            <s:property/>
        </s:iterator>
    </span>
</s:if>